﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace HongStone.Repository.Migrations
{
    public partial class joinstr : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
           

            migrationBuilder.CreateTable(
                name: "BonusCoefficient",
                columns: table => new
                {
                    BonusId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    BonusName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Proportion = table.Column<decimal>(type: "decimal(18,2)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BonusCoefficient", x => x.BonusId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "BonusCoefficient");

            migrationBuilder.DropColumn(
                name: "Yuan",
                table: "Function");
        }
    }
}
